package chapter10.practice23;

/**
 * Created by yangliwei on 2017/10/23.
 */
public class A{
    public U createU(){
        return new U(){

            @Override
            public void f1() {
                System.out.println("I'm f1");
            }

            @Override
            public void f2() {
                System.out.println("I'm f2");
            }

            @Override
            public void f3() {
                System.out.println("I'm f3");
            }
        };
    }
}
